package com.demo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.api.R;
import com.demo.bean.Article;
import com.demo.common.Result;

import java.util.List;

public interface ArticleService {
	/**
	 * 按照id查询
	 * @param id
	 * @return
	 */
	Result findById(Integer id);

	Result findByTitle(String title);

	Result findPage(Integer pageId,Integer pageSize);

	/**
	 * 插入
	 * @param articleList
	 * @return
	 */
	Result insert(List<Article> articleList);

	Result update(Article article);

	Result delete(List<Long> ids);


}
